<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const arr = [
            { name: '张三', salary: 1000 },
            { name: '李四', salary: 1000 },
            { name: '好好', salary: 1000 }
        ]
        // 找张三这个对象，并返回这个对象  
        // 用处 查找
        const re = arr.find(function (item) {
            return item.name === '张三'
        })
        console.log(re);
    </script>
</body>

</html>